package com.hengpeng.itfin.service;

import com.hengpeng.common.exception.ServiceResult;
import com.hengpeng.itfinbase.message.ResponseMessage;
import com.hengpeng.itfinbase.message.admin.SmsResendRequest;
import com.hengpeng.itfinbase.message.userInfo.SendSMSRequest;

public interface SmsService {
    /**
     * 校验短信验证码是否有效
     * 
     * @param request
     *            请求消息
     * @return 短信验证码是否有效
     */
    public ResponseMessage confirmValidSMS(SendSMSRequest request);

    /**
     * 重发短信
     * 
     * @param request
     */
    public ServiceResult<Boolean> resendSMS(SmsResendRequest request);

    /**
     * 发送手机验证短信
     * 
     * @param request
     * @return
     */
    public ResponseMessage sendValidSMS(SendSMSRequest request);
}
